/**
 * item types: input/select/image/zone/label
 * keyup: alt.67  enter/tab/delete/esc/space/up/down/left/right/page-down/alt/ctrl/shift/meta
 */
const apps = [
    {
        name: '系统-初始化',
        background: '/file/image/2c91bf9a65c328010165c3e021550002',
        items: [],
        events: {
            'keyup.enter': { show: '身份证', hide: '', pages: 0, app: '系统-模块-001' },
            'keyup.alt.67': { show: '身份证', hide: '', pages: 0, app: '系统-模块-001' },
            'keyup.ctrl.13': { show: '身份证', hide: '', pages: 0, app: '系统-模块-001' }
        },
        tips: ''
    },
    {
        name: '系统-模块-001',
        background: '/file/image/2c91bf9a65c328010165c3e021550002',
        items: [
            { name: '身份证', type: 'image', w: 50, h: 50, x: 450, y: 158, display: false, icon: 'https://user-images.githubusercontent.com/5146149/44159350-afad6280-a0e9-11e8-8773-c3bc81092a31.png', props: { style: {} }, onClick: { hide: 'self', pages: 1 } },
            { name: '区域1', type: 'zone', w: 50, h: 50, x: 550, y: 158, display: true, props: { style: { backgroundColor: 'lightgray' } }, onClick: { show: '文字1' } },
            { name: '文字1', type: 'label', w: 100, h: 20, x: 550, y: 168, display: false, content: '交易成功!', props: { style: { color: 'red' } }, onClick: { show: '客户操作' } },
            { name: '姓名输入', type: 'input', w: 80, h: 20, x: 330, y: 138, display: true, props: { style: { color: 'red' }, placeholder: '请输入', maxLength: 100 }, onChange: { value: '满硕', show: '证件列表', hide: '' } },
            { name: '证件列表', type: 'select', w: 80, h: 20, x: 330, y: 168, display: false, content: ',身份证,驾照,护照', props: { style: {}, maxLength: 100 }, onChange: { value: '身份证', show: '身份证' } }
        ],
        events: [
            { keyup: 'enter', show: '', hide: '', pages: 0, app: '' }
        ],
        tips: `<div><h3>富文本提示</h3><p style="color: gray">帮助提示</p></div>`
    },
    {
        name: '交易系统001060',
        background: '/file/image/2c91bf9a65d803da0165d8a107070007',
        items: [
            { name: '空白遮罩', type: 'zone', w: 600, h: 400, x: 180, y: 88, display: true, props: { style: { backgroundColor: 'white' } } },
            { name: '交易码', type: 'input', w: 80, h: 10, x: 55, y: 55, display: true, props: { style: { color: 'red' }, placeholder: '请输入', maxLength: 100 }, onChange: { value: '001060', show: '账号', hide: '空白遮罩', score: 10 } },
            { name: '账号', type: 'input', w: 80, h: 10, x: 295, y: 95, display: false, props: { style: { color: 'red' }, placeholder: '请输入', maxLength: 100 }, onChange: { value: '80020000007002310', show: '币种', score: 10 } },
            // { name: '账号', type: 'label', w: 100, h: 20, x: 550, y: 168, display: false, content: '交易成功!', props: { style: { color: 'red' } }, onClick: { show: '客户操作' } },
            { name: '币种', type: 'select', w: 80, h: 10, x: 540, y: 98, display: false, content: ',001-CNY-人民币,002-USD-美元,003-EUR-欧元', props: { style: {} }, onChange: { value: '001-CNY-人民币', show: '交易确认,确认按钮', score: 10 } },
            { name: '交易确认', type: 'image', w: 500, h: 200, x: 280, y: 188, display: false, icon: '/file/image/2c91bf9a65d803da0165d8b800e40008', props: { style: {} } },
            { name: '确认按钮', type: 'zone', w: 80, h: 20, x: 444, y: 294, display: false, props: { style: {} }, onClick: { app: '系统-模块-001', hide: 'self', pages: 1 } },
        ],
        // events: [
        //     { keyup: 'enter', show: '', hide: '', pages: 0, app: '' }
        // ],
        tips: `<div><ul><li>账号: 80020000007002310</li><li>币种: 001-CNY-人民币</li><li>金额: 1000</li></ul></div>`
    },
]

export default apps